package ve.lm.hrms_cy.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

@TableName("bill")
public class Bill {

    private Long id;

    @TableField("description")
    private String description;

    @TableField("department")
    private String department;

    @TableField("fund")
    private Integer fund;

    @TableField("status")
    private String status;

    @TableField("departmentId")
    private Integer departmentId;

    public Bill() {}

    @JsonCreator
    public Bill(
            @JsonProperty("description") String description,
            @JsonProperty("department") String department,
            @JsonProperty("fund") Integer fund,
            @JsonProperty("status") String status,
            @JsonProperty("departmentId") Integer departmentId
    ) {
        this.description = description;
        this.department = department;
        this.fund = fund;
        this.status = status;
        this.departmentId = departmentId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Integer getFund() {
        return fund;
    }

    public void setFund(Integer fund) {
        this.fund = fund;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
}
